#pragma once
#include "Globals.hpp"
#include "OpenGL.hpp"
#include <string>
using namespace std;

class KeyboardInput
{
private:
	string m_string;
	bool m_active;
	int m_maxInputSize;

public:
	KeyboardInput();
	~KeyboardInput();

	string GetString()					{return m_string;}
	void AddCharacter(char character)	{m_string.push_back(character);}
	void ClearString()					{m_string.clear();}
	void PopBack();
	void SetMaxStringSize(int size)		{m_maxInputSize = size;}
	
	bool HandleEvents(const SDL_Event& event);	// returns true if enter was pressed
};